package com.example.blog.modules.system.entity;

import com.example.blog.common.base.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Entity
@Table(name = "sys_configs")
@EqualsAndHashCode(callSuper = true)
public class SysConfig extends BaseEntity {

    @Column(nullable = false, unique = true)
    private String configKey;

    @Column(nullable = false)
    private String configValue;

    @Column(nullable = false)
    private String configName;

    private String remark;

    @Column(nullable = false)
    private Integer sort = 0;

    @Column(nullable = false)
    private Boolean isSystem = false;
} 